home *** CD-ROM | disk | FTP | other *** search
- Path: news.iadfw.net!usenet
- From: Mark Nelson <markn@airmail.net>
- Newsgroups: comp.lang.c,comp.lang.c++
- Subject: Re: calling 16 bit DLL from 32-bit C/C++ program?
- Date: Thu, 18 Apr 1996 22:17:10 -0500
- Organization: customer of Internet America
- Message-ID: <317705B6.1241@airmail.net>
- References: <4l4die$i7q@vixen.cso.uiuc.edu>
- NNTP-Posting-Host: dal17-02.ppp.iadfw.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
- X-Mailer: Mozilla 2.0GoldB2 (Win95; I)
-
- Baogang Yao wrote:
- >
- > Does anybody know whether it's possible to call a 16-bit DLL from a
- > 32bit C/C++ application? I am using Microsoft Visual C++4.0, and I
- > have to call a 16 bit DLL.
- >
- > Any suggestions will be helpful. Thanks in advance.
- >
- > Baogang Yao
- > b¡yao@cs.uiuc.edu
-
- Yes, it is possible. You need to look in your online help for
- documentation on the Universal Thunk Layer. Microsoft provides
- some DLLs with a very small API that you use.
-
- The downside to all this is that you have to write an
- interface to handle all the parameter passing. The MS code
- takes care of converting pointers from 32 bits down to 16:16,
- but it doesn't give you much more help than that.
-
- Mark Nelson
- http://web2.airmail.net/markn
-